package create.factory.abstractClass;

import create.factory.simpleFactory.AppleIComputer;
import create.factory.simpleFactory.IComputer;

/**
 * @author dali
 * @date 2021-07-09 13:56
 * @Description
 */

public class AppleFactory implements Factory {
    @Override
    public IComputer getComputer() {
        //生产苹果电脑
        return new AppleIComputer();
    }

    @Override
    public IPhone getPhone() {
        //生产苹果手机
        return new ApplePhone();
    }
}
